﻿@model Promocot.Models.Destino

@{
    ViewBag.Title = "NuevoDes";
}



<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("CrearDestino","Administracion",FormMethod.Post)) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Destino</legend>

        <div class="editor-label">
            @Html.Label("Destino")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nombre_destino)
            @Html.HiddenFor(model=>model.Id)
            @Html.ValidationMessageFor(model => model.nombre_destino)
        </div>
                <div class="editor-label">
            @Html.Label("ID de destino")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.num_destino)
            @Html.ValidationMessageFor(model => model.num_destino)
        </div>

        <p>
            <input type="submit" value="Crear destino" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver", "Destinos")
</div>
